# -*- coding: utf-8 -*-
# @Time : 2023/11/30 9:58
# @Author : 王薪超
# @Email : 1517113428@qq.com
# @File : page_wxc_buy.py
# @Project : wxczzb
from common.base_page import BasePage
from appium.webdriver.common.appiumby import AppiumBy
from time import sleep
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
class Buy(BasePage):
    btn_desktop_market = (AppiumBy.ID,'com.jhss.youguu:id/btn_desktop_market')#行情
    #(88,1484)#股票坐标位置
    gp=(AppiumBy.XPATH,'//android.widget.TextView[@text="鼎捷软件"]')
    btn_buy = (AppiumBy.ID,'com.jhss.youguu:id/btn_buy')#购买

    def buy_page(self):
        self.click_ele(self.btn_desktop_market)#点击行情
        sleep(1)
        self.click_ele(self.gp)#点击股票
        sleep(1)
        self.tap(88,1484)#跳过引导页面
        sleep(1)
        self.click_ele(self.btn_buy)#点击购买
        sleep(1)
